package com.pxst.agent.req;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class ProgressionReq {

    @NotNull(message = "区段开始金额不能为空")
    @ApiModelProperty(value = "区段开始金额", required = true)
    private BigDecimal from;

    @NotNull(message = "返点率不能为空")
    @ApiModelProperty(value = "返点率", required = true)
    private Double rate;

    @NotNull(message = "区段结束金额不能为空")
    @ApiModelProperty(value = "区段结束金额", required = true)
    private BigDecimal to;
}
